2008-05-25 Cody Russell <bratsche@gnome.org>
Bug 526635 - _gdk_window_get_toplevel handles FOREIGN windows
* gdk/x11/gdkwindow-x11.c (_gdk_window_get_toplevel): Check
!WINDOW_IS_TOPLEVEL instead of checking for GDK_WINDOW_CHILD,
so that we also take into account for foreign windows.
Report and patch by Nathaniel Smith.
svn path=/trunk/; revision=20166
+2008-05-25 Cody Russell <bratsche@gnome.org>
+
+ Bug 526635 - _gdk_window_get_toplevel handles FOREIGN windows
+
+ * gdk/x11/gdkwindow-x11.c (_gdk_window_get_toplevel): Check
+ !WINDOW_IS_TOPLEVEL instead of checking for GDK_WINDOW_CHILD,
+ so that we also take into account for foreign windows.
+ Report and patch by Nathaniel Smith.
+
2008-05-25 Cody Russell <bratsche@gnome.org>
Bug 525461 - Don't invalidate under an input-only child
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
- if (GDK_WINDOW_TYPE (window) == GDK_WINDOW_CHILD)
+ if (!WINDOW_IS_TOPLEVEL (window))
return NULL;
private = (GdkWindowObject *)window;